#pragma once

/////////////
// INCLUDE //
/////////////
#include <SDL.h>
#include <SDL_image.h>	// 图片
#include <SDL_ttf.h>	// 文字
#include <SDL_mixer.h>	// 音乐
#include <iostream>
#include <string>
#include <sstream>
#include <cmath>


//////////
// LINK //
//////////
#pragma comment(lib, "SDL2.lib")
#pragma comment(lib, "SDL2main.lib")
#pragma comment(lib, "SDL2test.lib")
#pragma comment(lib, "SDL2_image.lib")
#pragma comment(lib, "SDL2_ttf.lib")
#pragma comment(lib, "SDL2_mixer.lib")


// 名称空间声明
using std::cout;
using std::endl;
using std::string;
using std::stringstream;


// 全局变量声明
extern SDL_Window* g_Window;
extern SDL_Renderer* g_Renderer;


// 初始化SDL
bool Init(string title_name = "窗口标题", const int screen_width = 800,
	const int screen_heignt = 600, IMG_InitFlags img_InitFlag = IMG_INIT_PNG);

// 关闭SDL
void Close();